/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package hr.pzrinscak.jpa;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity(name = "VACATION_REQUEST_")
public class VacationRequest {

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "ID_")
    private Long id;

    @Column(name = "EMPLOYEE_NAME_")
    private String employeeName;

    @Column(name = "NUMBER_OF_DAYS_")
    private Integer numberOfDays;

    @Column(name = "START_DATE_")
    private Date startDate;

    @Column(name = "RETURN_DATE_")
    private Date returnDate;

    @Column(name = "VACATION_PAY_")
    private boolean vacationPay;

    @Column(name = "VACATION_MOTIVATION_")
    private String vacationMotivation;

    @Column(name = "VACATION_APPROVED_")
    private Boolean vacationApproved;

    @Column(name = "MANAGER_MOTIVATION_")
    private String managerMotivation;

    @Column(name = "RESEND_REQUEST_")
    private Boolean resendRequest;

    public VacationRequest(){
        //id=1L;
    }

    public Long getId() {
        return id;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(final String p_employeeName) {
        employeeName = p_employeeName;
    }

    public Integer getNumberOfDays() {
        return numberOfDays;
    }

    public void setNumberOfDays(final Integer p_numberOfDays) {
        numberOfDays = p_numberOfDays;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(final Date p_startDate) {
        startDate = p_startDate;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(final Date p_returnDate) {
        returnDate = p_returnDate;
    }

    public boolean isVacationPay() {
        return vacationPay;
    }

    public void setVacationPay(final boolean p_vacationPay) {
        vacationPay = p_vacationPay;
    }

    public String getVacationMotivation() {
        return vacationMotivation;
    }

    public void setVacationMotivation(final String p_vacationMotivation) {
        vacationMotivation = p_vacationMotivation;
    }

    public Boolean getVacationApproved() {
        return vacationApproved;
    }

    public void setVacationApproved(final Boolean p_vacationApproved) {
        vacationApproved = p_vacationApproved;
    }

    public String getManagerMotivation() {
        return managerMotivation;
    }

    public void setManagerMotivation(final String p_managerMotivation) {
        managerMotivation = p_managerMotivation;
    }

    public Boolean getResendRequest() {
        return resendRequest;
    }

    public void setResendRequest(final Boolean p_resendRequest) {
        resendRequest = p_resendRequest;
    }

}
